// eslint-disable-next-line no-unused-vars
var groups = {
    "001": {
        "name": "维修组",
        "leader": "2020210432",
    },
    "002": {
        "name": "监控组",
        "leader": "2020210431",
    }
}

// eslint-disable-next-line no-unused-vars
// var leaders = {
//     "2020210432": {
//         "name": "赵组",
//     },
//     "2020210431": {
//         "name": "钱组",
//     },
// }

// var maintainers = {
//
// }
//
// var monitors = {
//
// }

// eslint-disable-next-line no-unused-vars
var staff = {
    "2020210432": {
        "name": "赵组",
        "group": "001",
        "role": 1,
    },
    "2020210431": {
        "name": "钱组",
        "group": "002",
        "role": 1,
    },
    "2020210430": {  //工号
        "name": "孙工",
        "group": "001",
        "device": ["", ""],
        "role": 2,  //0boss 1leader 2maintainer 3monitor
        "schedule": [],
    },
    "2020210429": {
        "name": "李工",
        "group": "001",
        "role": 2,
        "device": [],
        "schedule": [],
    },
    "2020210428": {
        "name": "周工",
        "group": "001",
        "role": 2,
        "device": [],
        "schedule": [],
    },
    "2020210427": {
        "name": "吴工",
        "group": "002",
        "role": 2,
        "device": [],
        "schedule": [],
    },
    "2020210426": {
        "name": "郑工",
        "group": "002",
        "role": 2,
        "device": [],
        "schedule": [],
    },
    "2020210425": {
        "name": "王工",
        "group": "002",
        "role": 2,
        "device": [],
        "schedule": [],
    }
}

// eslint-disable-next-line no-unused-vars
var devices = {
    "2020210432-a-001": {  //格式：学号-厂线-设备号
        "name": "M3内喷电机",
        "line": "2020210432-a",
        "statue": 1, //0正常， 1异常， （2维修中）
        "sheet": "2020210432-a-001-001"
    },
    "2020210432-a-002": {
        "name": "M5内喷电机",
        "line": "2020210432-a",
        "statue": 1, //0正常， 1异常， （2维修中）
        "sheet": "2020210432-a-001"
    },
    "2020210432-a-003": {
        "name": "立体库",
        "line": "2020210432-a",
        "statue": 1, //0正常， 1异常， （2维修中）
        "sheet": "2020210432-a-001"
    },
    "2020210432-a-004": {
        "name": "外置电机",
        "line": "2020210432-a",
        "statue": 1, //0正常， 1异常， （2维修中）
        "sheet": "2020210432-a-001"
    },
    "2020210432-a-005": {
        "name": "工控机柜",
        "line": "2020210432-a",
        "statue": 1, //0正常， 1异常， （2维修中）
        "sheet": "2020210432-a-001"
    },
    "2020210432-b-001": {
        "name": "M3内喷电机",
        "line": "2020210432-b",
        "statue": 1, //0正常， 1异常， （2维修中）
        "sheet": "2020210432-a-001"
    },
    "2020210432-b-002": {
        "name": "M5内喷电机",
        "line": "2020210432-b",
        "statue": 1, //0正常， 1异常， （2维修中）
        "sheet": "2020210432-a-001"
    },
    "2020210432-b-003": {
        "name": "立体库",
        "line": "2020210432-b",
        "statue": 1, //0正常， 1异常， （2维修中）
        "sheet": "2020210432-a-001"
    },
    "2020210432-b-004": {
        "name": "外置电机",
        "line": "2020210432-b",
        "statue": 1, //0正常， 1异常， （2维修中）
        "sheet": "2020210432-a-001"
    },
    "2020210432-b-005": {
        "name": "工控机柜",
        "line": "2020210432-b",
        "statue": 1, //0正常， 1异常， （2维修中）
        "sheet": "2020210432-a-001"
    }
}

// eslint-disable-next-line no-unused-vars
var lines = {
    "2020210432-a": {  //格式：学号-厂线号
        "name": "花都新工厂线"
    },
    "2020210432-b": {
        "name": "黄浦示范线"
    }
}

// eslint-disable-next-line no-unused-vars
var sheets = {
    "2020210432-a-001-001": {
        "line": "2020210432-a",
        "device": "2020210432-a-001",
        "create_time": "",
        "update_time": "",
        "submitor": "",
        "desp": "描述1",
        "status": 0, //0未分配
        "type": 0,  //0普通提交 1异常告警
        "maintainer": "",
        "uid": "2020210432"
    },
    "2020210432-a-001-002": {
        "line": "2020210432-a",
        "device": "2020210432-a-001",
        "create_time": "",
        "update_time": "",
        "submitor": "",
        "desp": "描述2",
        "status": 0, //0未分配
        "type": 0,  //0普通提交 1异常告警
        "maintainer": "",
        "uid": "2020210432"
    },
    "2020210432-a-001-003": {
        "line": "2020210432-a",
        "device": "2020210432-a-001",
        "create_time": "",
        "update_time": "",
        "submitor": "",
        "desp": "描述3",
        "status": 0, //0未分配
        "type": 0,  //0普通提交 1异常告警
        "maintainer": "",
        "uid": "2020210432"
    },
    "2020210432-a-001-004": {
        "line": "2020210432-a",
        "device": "2020210432-a-001",
        "create_time": "",
        "update_time": "",
        "submitor": "",
        "desp": "描述4",
        "status": 0, //0未分配
        "type": 0,  //0普通提交 1异常告警
        "maintainer": "",
        "uid": "2020210432"
    },
    "2020210432-a-001-005": {
        "line": "2020210432-a",
        "device": "2020210432-a-001",
        "create_time": "",
        "update_time": "",
        "submitor": "",
        "desp": "描述5",
        "status": 0, //0未分配
        "type": 0,  //0普通提交 1异常告警
        "maintainer": "",
        "uid": "2020210432"
    },
}